<template>
  <footer class="volvo-footer">
    <div class="volvo-footer__left">
      <h1 class="volvo-footer__title">XC40</h1>
      <p class="volvo-footer__subtitle">RECHARGE</p>
    </div>
    <div class="volvo-footer__right">
      <div class="volvo-footer__item">
        <img src="/assets/icon/car.png" alt="试乘试驾" class="volvo-footer__icon" />
        <span class="volvo-footer__text">试乘试驾</span>
      </div>
      <div class="volvo-footer__item">
        <img src="/assets/icon/jiage.png" alt="价格配置" class="volvo-footer__icon" />
        <span class="volvo-footer__text">价格配置</span>
      </div>
      <div class="volvo-footer__item">
        <img src="/assets/icon/zhilan.png" alt="购车指南" class="volvo-footer__icon" />
        <span class="volvo-footer__text">购车指南</span>
      </div>
    </div>
  </footer>
</template>

<script setup>
// 组件逻辑
</script>

<style lang="scss" scoped>
@import '../../styles/variables.scss';

.volvo-footer {
  width: 100%;
  padding: $spacing-lg;
  background-color: $color-black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: $z-index-fixed;
  padding-bottom: calc($spacing-lg + env(safe-area-inset-bottom));

  &__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: $spacing-sm;
  }

  &__title {
    color: $color-white;
    text-align: center;
    font-family: $font-volvo-broad;
    font-size: $font-size-xxl;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
  }

  &__subtitle {
    color: $color-white;
    font-family: $font-volvo-novum;
    font-size: $font-size-xs;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    margin: 0;
  }

  &__right {
    display: flex;
    gap: $spacing-lg;
  }

  &__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: $spacing-xs;
  }

  &__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  &__text {
    color: $color-white;
    text-align: center;
    font-family: $font-source-han;
    font-size: $font-size-xs;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
  }
}
</style>
